home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / CHKDSK.HLP < prev    next >
Text File  |  1985-09-10  |  5KB  |  108 lines

  1. -----------------------  CHKDSK - External DOS Command  ------------------------
  2.  
  3. CHKDSK analyzes memory and the directories and File Allocation Table of the
  4.    specified disk and produces a report of disk and memory status.
  5.  
  6. FORMAT:   CHKDSK [d:][filename[.ext]][/F][/V]
  7.  
  8. REMARKS:
  9.  
  10.    d:           - the drive whose disk is to be analyzed.  If omitted, the
  11.                   default drive is assumed.
  12.    filename.ext - specifies files to be checked for non-contiguous sectors.  The
  13.                   files must be in the current directory.  Global characters
  14.                   (* and ?) may be used.
  15.    /F           - specifies that errors found in the directory or file
  16.                   allocation table are to be fixed.
  17.    /V           - causes CHKDSK to display messages indicating its progress and
  18.                   provides more information about the errors it finds.
  19.  
  20.    CHKDSK does not prompt you to insert a diskette (as DISKCOPY does, for
  21.    example).  If you are using a single drive system and the diskette you want
  22.    to check is not the DOS diskette, you must specify a drive other than the
  23.    default drive.  For example, if the default drive is A, place the DOS
  24.    diskette in drive A and enter CHKDSK B:.  You may then insert the diskette to
  25.    be analyzed when DOS prompts you to enter the diskette for drive B.
  26.  
  27.    CHKDSK can sometimes correct errors found in the directory or file allocation
  28.    table.  If you specify the /F parameter, corrections will be made.  If you
  29.    omit /F, CHKDSK will function as though you did specify /F, to inform you of
  30.    detected errors, but will not actually make the corrections.  If you did not
  31.    specify /F and CHKDSK informs you of errors and you want to correct the
  32.    errors, run CHKDSK again and specify /F.
  33.  
  34.    Specifying the "filename.ext" parameter causes CHKDSK to look for
  35.    non-contiguous (non-sequential or "fragmented") sectors for the specified
  36.    files.  Files with non-contiguous sectors take longer to read since DOS
  37.    cannot access them sequentially.  A file with non-contiguous sectors is
  38.    called a "fragmented file."  You can check fragmentation of all files in the
  39.    current directory by specifying *.* for this parameter.
  40.  
  41.    If CHKDSK finds lost clusters (one or more sectors of disk storage) on disk,
  42.    it asks you (via a Y/N prompt) if you wish to recover the lost data into
  43.    files.  If the /F parameter was specified and you respond Y to the prompt,
  44.    CHKDSK converts the lost data into files named:
  45.  
  46.           FILEnnnn.CHK     where nnnn is a sequential number starting with 0000.
  47.  
  48.           These files will be written in the root directory.  Check these files
  49.           to see if they contain any data you want to retain.  If they do not,
  50.           erase them.
  51.  
  52.    Below is an example of the status report produced by CHKDSK.  The line
  53.    numbers are added for reference in the following explanation:
  54.  
  55.           1      Volume FIXDISK      Created APR 5, 1985 9:35
  56.  
  57.           2      362496 bytes total disk space
  58.           3       22528 bytes in 2 hidden files
  59.           4        2048 bytes in 2 directories
  60.           5       72704 bytes in 8 user files
  61.           6      265216 bytes available on disk
  62.  
  63.           7      327680 bytes total memory
  64.           8      282912 bytes free
  65.  
  66.    Explanation:
  67.  
  68.       Line 1 - Volume label and the date and time the disk was formatted.
  69.       Line 2 - Total number of bytes (characters of information) on the disk.
  70.                This gives the total storage capacity of the disk.
  71.       Line 3 - Total bytes and count of hidden files.  DOS uses two hidden files
  72.                to store operating system programs.  A disk volume label is a
  73.                hidden file.  Applications may also create hidden files.  Hidden
  74.                files do not show up in a directory listing and cannot be removed
  75.                with the ERASE command.
  76.       Line 4 - Total bytes and count of directories.
  77.       Line 5 - Total bytes and count of user files.  A "user file" is a file
  78.                that is not a directory or a hidden file.
  79.       Line 6 - Total bytes available (not used).
  80.       Line 7 - Total bytes of RAM (Random Access Memory, "user memory")
  81.                installed on the system.
  82.       Line 8 - Total bytes of RAM that are free (not used).  The number will
  83.                always be less than "bytes total memory" (line 7) because a
  84.                portion of DOS is placed in RAM when the system is started.
  85.  
  86. EXAMPLES:
  87.  
  88. Perform a CHKDSK on the B drive.  The default drive is A:
  89.  
  90.           CHKDSK B:
  91.  
  92.  
  93. Perform a CHKDSK on the default drive and recover any lost clusters:
  94.  
  95.           CHKDSK /F
  96.  
  97.  
  98. Perform a CHKDSK on the default drive.  Recover any lost clusters and produce
  99. information on CHKDSK's progress and more detailed error information:
  100.  
  101.           CHKDSK /F/V
  102.  
  103.  
  104. Check the fragmentation of all files in the current directory of the default
  105. drive:
  106.  
  107.           CHKDSK *.*
  108.